package core.ui.demo;

import javafx.collections.ObservableList;
import javafx.scene.control.ComboBox;
import javafx.scene.effect.BlendMode;
/**
 * @author 李瑜
 * @since JavaFX 8.0
 */
public class DemoComboBox
{
	public static ComboBox<String> getComboBox()
	{
		ComboBox<String> comboBox = new ComboBox<>();
		comboBox.setBlendMode(BlendMode.EXCLUSION);
		
		ObservableList<String> list = comboBox.getItems();
		
		list.add("选项1");
		list.add("选项2");
		list.add("选项3");
		list.add("选项4");
		list.add("选项5");
		
		return comboBox;
	}
}
